home *** CD-ROM | disk | FTP | other *** search
GW-BASIC | 1996-03-06 | 3.1 KB | 69 lines |
- 10 CLEAR,32768:KEY OFF:CLS
- 15 GOTO 1020
- 20 X$="system":KEY 10,X$+CHR$(13):KEY 5,"LIST 1000-"+CHR$(13)
- 25 KEY 4,"SAVE"+CHR$(34)+"VWXP"
- 30 DEF SEG=&H4F00
- 40 BLOAD "vu960a.asm",&H100
- 41 IF VC=2 THEN POKE 408,16
- 49 PRINT:PRINT:PRINT:PRINT:PRINT:PRINT" K3BC WEATHERFAX VIEWING (960 pixels)"
- 50 PRINT:PRINT" This program is for viewing on a VGA (640x480) machine a picture that was"
- 60 PRINT"captured with the WXP program and has been SAVEd in either FULL or COMPRESSED"
- 65 PRINT"format. WXP is in the 960 pixel/line larger format."
- 70 PRINT" When you select a picture file using the cursor, it is initially"
- 110 PRINT"displayed in the GRAY colors. Hit 1, 2, 3, or 4 to get other color schemes."
- 115 PRINT"Palette 1 can be custom tailored by changing the line 370 to 390 DATA table."
- 120 PRINT"Palette 2 choice gives the Gray . Scrolling is done with the arrow keys,"
- 130 PRINT"but D(own) and U(p) gives larger jumps. S will Shrink and X will eXpand the"
- 140 PRINT"pix. HOME removes the scrolling. Turn printer ON and hit P(rint) to print."
- 145 PRINT"To view and possibly change the SYSTEM CONFIGURATION hit F5 twice."
- 150 PRINT" Q(uit) exits the picture. F10 can be used to exit back to DOS, or to"
- 160 PRINT"view another picture you can hit F2 to reRUN the program."
- 180 FOR F=3728 TO 3775:READ G:POKE F,G:NEXT F
- 190 IF AU=1 THEN GOTO 210
- 199 PRINT:PRINT:PRINT:PRINT" F5=SYS CONFIG F10=DOS"
- 200 INPUT" What Path or Directory is file in (Default=DF$)";PA$
- 201 IF PA$="" THEN PA$=DF$
- 203 IF PA$="LIST 1000-" THEN CLS:PRINT" F5=SYS CONFIG F10=DOS F2=ReRUN": END
- 204 IF PA$="system" THEN CLS: SYSTEM
- 205 PRINT:PRINT:PRINT:INPUT" Is the file in compressed form--y or n (Default=y)";Y$
- 210 IF Y$="" THEN Y$="y"
- 220 IF Y$="n" THEN GOTO 280
- 230 IF Y$="y" GOTO 250
- 240 GOTO 200
- 250 CLS:FILES PA$+"*.zip":GOSUB 400
- 260 SHELL "wxpunzip "+A$+" "+PA$
- 270 A$="pix.wx":GOTO 310
- 280 CLS:FILES PA$+"*.960":GOSUB 400
- 290 IF A$="" THEN A$="pix.wx":GOTO 310
- 300 A$=PA$+A$+".960"
- 310 DEF SEG=&H4F00:K=&H100:CALL K(A%,B%,A$)
- 320 PRINT:PRINT:PRINT:PRINT" HIT F2 FOR ANOTHER PIX-----HIT F10 TO GOTO DOS"
- 330 END
- 340 'These data are for palette no.1. Each group of 3 is red, green, blue
- 350 'amplitudes. That is: 0,0,0=Black; 63,0,0=Bright Red; 63,63,63=White;etc.
- 360 'You can change them to form your own palette. Max. amplitude is 63.
- 370 DATA 0,0,0,0,31,0,0,47,0,0,63,0,31,63,0,63
- 380 DATA 0,47,63,0,31,63,0,16,63,0,0,63,16,0,63,31
- 390 DATA 0,63,47,0,63,63,0,47,63,0,31,63,0,63,63,63
- 400 PRINT" MOVE CURSOR TO FILE"
- 410 DEF SEG=&H6F00:BLOAD "pickfile.asm",&H100
- 420 K=&H100:CALL K
- 430 FOR Y=&H190 TO &H19C
- 440 Z=PEEK(Y)
- 450 IF Z=32 OR Z=46 THEN GOTO 480
- 460 Z$=CHR$(Z)
- 470 A$=A$+Z$:NEXT Y
- 480 PRINT A$
- 490 RETURN
- 1000 ' SYSTEM CONFIGURATION
- 1010 ' xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- 1020 VC=1 'Video Card--VC=1 is VGA (640x480)--VC=2 is EGA (640x350)
- 1030 AU=0 'AU=0 is No auto choices--AU=1 is automatic default choices
- 1035 DF$="c:\tv\wxp\" 'Default path where files copied by WXP reside
- 1040 GOTO 20
- 1115 ' ------- INSTRUCTIONS -------
- 1120 ' To change the configuration, move cursor and type new choice and
- 1130 ' ENTER. Move the cursor in the clear and hit F5 to check change.
- 1140 ' To save the change, move cursor in the clear, hit F4, which types
- 1150 ' VWXP and ENTER. F2 will then reRUN the program or F10 goes to DOS.
-